#include"Thread.hpp"
#include<unistd.h>
using namespace ThreadModlue;
class ThreadData
{
    public:
    pthread_t tid;
    string name;
};
void Count(ThreadData td)
{
    while(true)
    {
        cout<<"我是一个新线程: pid :"<<getpid()<<endl;
        sleep(1);
    }
}
int main()
{
    ThreadData td;
    Thread<ThreadData> t(Count,td);
    t.Start();
    //t.Join();
    t.Detach();
    return 0;  
}